<?php

namespace app\validate\api\recovery;

use think\Validate;

class productShopValidate extends Validate
{

    protected $rule = [
        'id'            => 'require',
        'category_id'   => 'require',
        'img'           => 'require',
//        'title'         => 'require',
        'area'          => 'require',
        'area_id'       => 'require',
        'city_id'       => 'require',
        'origin_id'     => 'require',
        'address'       => 'require',
        'shop_type'     => 'require',
        'insdustry'      => 'require',
        'measure'       => 'require',
        'rent'          => 'require',
        'lease_term'    => 'require',
        'transfer_cost' => 'require',
        'desc'          => 'require',
        'is_agree'      => 'require',
    ];


    protected $message = [
        'id.require'            => 'id必填',
//        'title.require'         => 'title标题必填',
        'category_id.require'   => '请选择分类',
        'img.require'           => '请上传资料图片',
        'area.require'          => '请选择区域',
        'area_id.require'       => '请选择省份',
        'city_id.require'       => '请选择市',
        'origin_id.require'     => '请选择区域',
        'address.require'       => '请填写店铺地址',
        'shop_type.require'     => '请选择店铺类型',
        'insdustry.require'     => '请选择行业',
        'measure.require'       => '请填写面积',
        'rent.require'          => '请填写租金',
        'lease_term.require'    => '请填写剩余租期',
        'transfer_cost.require' => '请填写转让费',
        'desc.require'          => '请填写详情介绍',
        'is_agree.require'      => '请勾选阅读并同意协议',
    ];

}